package prova;

import finestra.LoopInverter;

public class IteratoreFromXtoY extends LoopInverter<Integer> {

	private int start;
	private int end;
	
	public IteratoreFromXtoY(int start,int end){
		this.start=start;;this.end=end;
	}
	
	@Override
	public void go() {
		for(int x=start;x<=end;x++)
			this.setNext(x);
		
		this.stop();
	}





}
